package com.smedi.ismedi.organization.core.port.adapter.persistence.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smedi.ismedi.database.starter.model.BasicFieldEntity;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "org_project_organization")
public class ProjectOrganizationEntity extends BasicFieldEntity implements Serializable {
    @TableField(value = "full_name")
    private String fullName;

    @TableField(value = "short_name")
    private String shortName;

    @TableField(value = "organization_code")
    private String organizationCode;

    @TableField(value = "project_id")
    private Long projectId;

    @TableField(value = "type")
    private String type;

    @TableField(value = "special_type")
    private String specialType;

    @TableField(value = "social_credit_code")
    private String socialCreditCode;

    @TableField(value = "display_order")
    private Integer displayOrder;

    @TableField(value = "parent_id")
    private Long parentId;

    @TableField(value = "is_root")
    private boolean root;
}
